find largest and smallest number in c